<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/carousel.css">
    <script src="../js/carousel.js"></script>
    <script src="../font/iconfont.js"></script>
    <style>
        .demo {
            width: 1226px;
            margin: 0 auto;
        }

        .adver {
            width: 1226px;
            margin: 0 auto;
            display: flex;
        }

        .adver .left,
        .adver .right {
            flex: 1;
            overflow: hidden;
        }
    </style>
</head>

<body>
    <div class="carousel demo">
        <div class="prev">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-zuo1"></use>
            </svg>
        </div>
        <div class="next">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-you2"></use>
            </svg>
        </div>
        <ul class="nav">
        </ul>
        <div class="slide-carousel">
            <div class="slide-item"><a href="https://www.baidu.com"><img src="../images/1.jpg" alt=""></a></div>
            <div class="slide-item"><a href="https://www.jd.com"><img src="../images/2.webp" alt=""></a></div>
            <div class="slide-item"><a href="https://www.taobao.com"><img src="../images/3.webp" alt=""></a></div>
            <div class="slide-item"><a href="https://www.bilibili.com"><img src="../images/4.webp" alt=""></a></div>
        </div>
    </div>
    <div class="adver">
        <div class="left">
            <div class="carousel adver1">
                <div class="prev">
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuo1"></use>
                    </svg>
                </div>
                <div class="next">
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-you2"></use>
                    </svg>
                </div>
                <ul class="nav">
                </ul>
                <div class="slide-carousel">
                    <div class="slide-item"><a href="https://www.baidu.com"><img src="../images/1.jpg" alt=""></a></div>
                    <div class="slide-item"><a href="https://www.jd.com"><img src="../images/2.webp" alt=""></a></div>
                    <div class="slide-item"><a href="https://www.taobao.com"><img src="../images/3.webp" alt=""></a>
                    </div>
                    <div class="slide-item"><a href="https://www.bilibili.com"><img src="../images/4.webp" alt=""></a>
                    </div>
                </div>
            </div>
        </div>
        <div class="right">
            <div class="carousel adver2">
                <div class="prev">
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuo1"></use>
                    </svg>
                </div>
                <div class="next">
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-you2"></use>
                    </svg>
                </div>
                <ul class="nav">
                </ul>
                <div class="slide-carousel">
                    <div class="slide-item"><a href="https://www.baidu.com"><img src="../images/1.jpg" alt=""></a></div>
                    <div class="slide-item"><a href="https://www.jd.com"><img src="../images/2.webp" alt=""></a></div>
                    <div class="slide-item"><a href="https://www.taobao.com"><img src="../images/3.webp" alt=""></a>
                    </div>
                    <div class="slide-item"><a href="https://www.bilibili.com"><img src="../images/4.webp" alt=""></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script>
    new Carousel(".demo");
    new Carousel(".adver1");
    new Carousel(".adver2");

</script>

</html>